package com.menhai.personmanagement.controller;

import com.menhai.personmanagement.entity.MbTreatmentInformation;
import com.menhai.personmanagement.entity.vo.MbPopulationVo;
import com.menhai.personmanagement.plus.OperLog;
import com.menhai.personmanagement.services.IMbTreatmentInformationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 就诊信息 前端控制器
 * </p>
 *
 * @author shikun
 * @since 2022-05-07
 */

@Slf4j
@RestController
@RequestMapping("/mbtreatmentinformation")
public class MbTreatmentInformationController {

     @Autowired
     private IMbTreatmentInformationService mbTreatmentnformationService;


     @OperLog(operDesc = "新增信息",operType = "新增")
     @RequestMapping("/addinformation")
     public int updatePopulation(MbTreatmentInformation mbTreatmentInformation){
          return mbTreatmentnformationService.addinformation(mbTreatmentInformation);
     }

     @RequestMapping("/listmbTreatmentnformation")
     public List listmbTreatmentnformation(MbTreatmentInformation mbTreatmentInformation){
          return mbTreatmentnformationService.listmbTreatmentnformation(mbTreatmentInformation);
     }

     @OperLog(operDesc = "删除信息",operType = "删除")
     @RequestMapping("/deleteByIdinformation")
     public int deleteByIdinformation(MbTreatmentInformation mbTreatmentInformation){
          return mbTreatmentnformationService.deleteByIdinformation(mbTreatmentInformation);
     }


     @RequestMapping("/selectByIdinformation")
     public MbTreatmentInformation selectByIdinformation(MbTreatmentInformation mbTreatmentInformation){
          return mbTreatmentnformationService.selectByIdinformation(mbTreatmentInformation);
     }
}
